<?php

namespace app\common\validate;

use think\Validate;

class UploadAudio extends Validate
{
    //30M
	protected $rule = [
        'audio' => 'require|fileExt:mpeg,mp3|fileMime:audio/mpeg,mp3/mp3|fileSize:31457280'
    ];

    protected $message = [
        'audio.require'=>'请上传mpeg或者mp3格式的语音',
        'audio.fileExt'=>'请上传后缀为[mpeg,mp3]的语音',
        'audio.fileMime'=>'语音类型格式错误',
        'audio.fileSize'=>'请上传小于30M的语音'
    ];
}
